package com.heima.model.common.pojos.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("ap_user")
public class ApUser {

    @TableId(type = IdType.AUTO)
    private Integer id;

    //密码、通信等加密盐
    private String salt;

    //用户名
    private String name;

    //密码,md5加密
    private String password;

    //手机号
    private String phone;

    //头像
    private String image;

    //性别
    private Integer sex;

    //0 未
    //1 是
    @TableField(value = "is_certification")
    private Integer isCertification;

    //是否身份认证
    @TableField(value = "is_identity_authentication")
    private Integer isIdentityAuthentication;

    //0正常
    //1锁定
    private Integer status;

    //0正常
    //1锁定
    private Integer flag;

    //注册时间
    @TableField(value = "created_time")
    private LocalDateTime createdTime;


}
